from django.urls import register_converter


class MyConuverter:
    regex = '1[3-9]\d{9}'


    def to_python(self, value):
        return value

    def to_url(self, value):
        return value


register_converter(MyConuverter, 'mobile')